package com.lxx.consumer.feign.fallback;

import com.lxx.consumer.feign.ProductFeign;
import com.lxx.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author liuxing
 * @create 2022-08-27 2:54
 */
@Component
public class ProductFallback implements ProductFeign {

    @Override
    public User getUserById(Long id) {
        User user = new User(null,"user",100);
        return user;
    }
}
